package com.avic.rong.api.mine;

import android.support.v4.app.FragmentActivity;

import com.avic.rong.api.HttpPostService;
import com.example.minato.minastore.BaseApi;
import com.example.minato.minastore.listener.HttpOnNextListener;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import io.reactivex.Observable;
import retrofit2.Retrofit;

public class UpEmailApi extends BaseApi {

    private String token;
    private String email;

    public UpEmailApi(RxAppCompatActivity rxAppCompatActivity, HttpOnNextListener listener) {
        super(rxAppCompatActivity, listener);
    }
    public void setArgument(String token,String email){
        this.email = email;
        this.token = token;
    }
    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostService httpPostService = retrofit.create(HttpPostService.class);
        return httpPostService.upEmail(token,email);
    }

}
